package com.model.模板;

public class Coffee extends Beverage {
    @Override
    protected void brew() {
        System.out.println("冲泡咖啡粉");
    }

    @Override
    protected void addCondiments() {
        System.out.println("加糖和牛奶");
    }

    // 覆盖钩子方法
    @Override
    protected boolean customerWantsCondiments() {
        return false; // 示例：默认不加调料
    }
}

